package com.nearsoft.academy;

import java.util.ArrayList;
import java.util.List;

public class PathTest {

	private String name;
	private boolean isActive = false;
	private List<OrientationData> orientationDataList = new ArrayList<OrientationData>();

	public PathTest(String name) {
		this.setName(name);
		this.setActive(false);
	}

	public PathTest() {
		isActive = false;
	}

	public OrientationData addOrientationEvent(float headingAngle, float pitchAngle,
			float rollAngle) {

		OrientationData orientationData = new OrientationData(headingAngle,
				pitchAngle, rollAngle);
		

		orientationDataList.add(orientationData);
		return orientationData;

	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public List<OrientationData> getOrientationDataList() {
		return this.orientationDataList;
	}

    public int getOrientationDataListSize(){
        return this.orientationDataList.size();
    }

	@Override
	public String toString() {
		return "PathTest [name=" + name + ", isActive=" + isActive
				+ ", orientationDataList.size =" + orientationDataList.size() + "]";
	}
	
	

}
